﻿package frEngine.render.layer
{

    public class Layer3DManager extends Object
    {
        public static const farEffect1:int = -50;
        public static const farEffect2:int = -49;
        public static const farEffect3:int = -48;
        public static const farEffect4:int = -47;
        public static const farEffect5:int = -46;
        public static const nearEffect1:int = -40;
        public static const nearEffect2:int = -39;
        public static const nearEffect3:int = -38;
        public static const nearEffect4:int = -37;
        public static const nearEffect5:int = -36;
        public static const backGroudImgLayer:int = -30;
        public static const backGroudMaskLayer:int = -20;
        public static const BackGroudEffectLayer:int = -1;
        public static const PixsMaskLayer:int = 2;
        public static const MapLayer:int = 5;
        public static const ShadowLayer:int = 6;
        public static const gridLayer:int = 10;
        public static const MapExtendsLayer:int = 15;
        public static const IconLayer:int = 17;
        public static const modelLayer0:int = 20;
        public static const modelLayer1:int = 30;
        public static const modelLayer2:int = 40;
        public static const particleLayer:int = 50;
        public static const AlphaLayer0:int = 60;
        public static const AlphaLayer1:int = 70;
        public static const AlphaLayer2:int = 80;
        public static const swordLayer:int = 90;
        public static const warpLayer:int = 95;
        public static const flyLayer:int = 98;
        public static const blood3DLayer:int = 100;
        public static const text3DLayer:int = 105;
        public static const BBoxLayer:int = 400;
        public static const HintDirection:int = 500;
        public static const NpcQuad:int = 600;
        public static const Draw2dQuad:int = 700;

        public function Layer3DManager()
        {
            return;
        }// end function

        public static function getLayerByName(param1:String) : int
        {
            var _loc_2:int = -1;
            switch(param1)
            {
                case "groud":
                {
                    _loc_2 = backGroudImgLayer;
                    break;
                }
                case "model0":
                {
                    _loc_2 = modelLayer0;
                    break;
                }
                case "model1":
                {
                    _loc_2 = modelLayer1;
                    break;
                }
                case "model2":
                {
                    _loc_2 = modelLayer2;
                    break;
                }
                case "alpha0":
                {
                    _loc_2 = AlphaLayer0;
                    break;
                }
                case "alpha1":
                {
                    _loc_2 = AlphaLayer1;
                    break;
                }
                case "alpha2":
                {
                    _loc_2 = AlphaLayer2;
                    break;
                }
                default:
                {
                    throw new Error("层不存在！");
                    break;
                }
            }
            return _loc_2;
        }// end function

    }
}
